/**
 * 
 */
package com.test.activityMq.listener;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;

/**
 * 消息监听器
 * @author liya
 * 上午11:54:28
 */
public class MqListener implements MessageListener {

	
	@Override
	public void onMessage(Message message) {
		try {
			System.out.println("收到的消息 : "+ ((TextMessage)message).getText());
		} catch (JMSException e) {
			e.printStackTrace();
		}
	}
	
}
